package cn.touna.jss.modules.third.dianhuabang.entity;

public class DianHuaBangResponseEntity {
    private String status;
    private String msg;
    private Object data;

    public static DianHuaBangResponseEntity fail(String status, String msg) {
        DianHuaBangResponseEntity response = new DianHuaBangResponseEntity(status,msg);
        return response;
    }

    public static DianHuaBangResponseEntity success(String status,String msg) {
        DianHuaBangResponseEntity response = new DianHuaBangResponseEntity(status,msg);
        return response;
    }

    public DianHuaBangResponseEntity(String status, String msg,Object data) {
        this.status = status;
        this.msg = msg;
        this.data =data;
    }

    public DianHuaBangResponseEntity(String status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "DianHuaBangResponseEntity{" +
                "msg='" + msg + '\'' +
                ", status='" + status + '\'' +
                ", data=" + data +
                '}';
    }
}
